<template>
  <div class="layout">
    <div class="table-layout">
      <div class="table-header">
        <el-row>
          <el-form ref="queryForm" :inline="true" :model="queryParams" class="demo-form-inline">
            <el-form-item label="案件名称" prop="c12">
              <el-input v-model="queryParams.c12" placeholder="请输入" clearable />
            </el-form-item>
            <el-form-item label="立案时间" prop="c4">
              <el-date-picker
                v-model="queryParams.c4"
                type="date"
                value-format="yyyy-MM-dd"
                placeholder="请选择"
              />
            </el-form-item>
            <el-form-item>
              <el-button type="primary" icon="el-icon-search" @click="searchHandle">查询</el-button>
              <el-button icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button>
            </el-form-item>
          </el-form>
        </el-row>
        <el-row :gutter="10" class="mb8">
          <el-col :span="1.5">
            <el-button
              type="primary"
              icon="el-icon-plus"
            >新增</el-button>
          </el-col>
          <el-col :span="1.5">
            <el-button
              type="success"
              icon="el-icon-edit"
              size="small"
              :disabled="single"
            >修改</el-button>
          </el-col>
          <el-col :span="1.5">
            <el-button
              type="danger"
              icon="el-icon-delete"
              size="small"
              :disabled="multiple"
            >删除</el-button>
          </el-col>
        </el-row>
      </div>
      <div class="table-body">
        <el-table :data="tableData" style="width: 100%" height="100%" stripe @selection-change="handleSelectionChange">
          <el-table-column type="selection" width="55" align="center" />
          <el-table-column type="index" label="序号" width="50" />
          <el-table-column align="left" prop="ajmc" label="案件名称" min-width="200" />
          <el-table-column align="center" prop="sah" width="180" label="受案号" />
          <el-table-column align="center" prop="ajlb" label="案件类型" />
          <el-table-column align="center" prop="lasj" label="立案时间" />
          <el-table-column align="center" prop="ysjg" label="移送机关" min-width="120" />
          <el-table-column align="center" prop="ajyjrq" label="案卷移交日期" />
          <el-table-column align="center" prop="lzzt" label="案件流转状态" />
          <el-table-column align="center" prop="spqx" label="审批期限" />
          <el-table-column align="center" prop="cjsj" label="创建时间" />
          <el-table-column align="center" label="操作" width="200">
            <template slot-scope="scope">
              <el-link v-if="scope.row.status==1 || scope.row.status==3 || scope.row.status==4" type="warning" class="mr-10">填录</el-link>
              <el-link v-if="scope.row.status==1 || scope.row.status==3 || scope.row.status==4" type="warning" class="mr-10">编辑</el-link>
              <el-link v-if="scope.row.status==1 || scope.row.status==3 || scope.row.status==4" type="danger" class="mr-10">删除</el-link>
              <el-popconfirm
                title="是否审核通过？"
                confirm-button-text="通过"
                cancel-button-text="驳回"
              >
                <el-link v-if="scope.row.status==0" slot="reference" type="success" class="mr-10">审核</el-link>
              </el-popconfirm>
              <el-link type="primary">详情</el-link>
            </template>
          </el-table-column>
        </el-table>
      </div>
      <div class="table-footer">
        <pagination
          background
          layout="total, sizes, prev, pager, next, jumper"
          :total="total"
          :page.sync="pageParams.pageNum"
          :limit.sync="pageParams.pageSize"
          @pagination="getList"
        />
      </div>
    </div>
  </div>
</template>

<script>
import page_common from '@/views/mixins/page_common.js'
export default {
  name: 'Arrest',
  components: {
  },
  mixins: [page_common],
  data() {
    return {
      queryParams: { c12: '', c4: '' },
      tableData: [],
      dialogVisible: false,
      drawerOpen: false,
      type: ''
    }
  },
  created() {
    this.searchHandle()
  },
  methods: {
    getList() {
      this.tableData = [
        {
          ajmc: '王某涉嫌故意伤害罪审查起诉案‌',
          sah: '（2025）豫0108刑捕0010号',
          ajlb: '审查起诉',
          ysjg: '郑州市公安局惠济分区',
          lasj: '2025-03-23',
          ajyjrq: '2025-03-24',
          lzzt: '继续侦查',
          spqx: '21小时12分钟',
          cjsj: '2025-03-24',
          status: 1,
          gajgForm: {
            ajmc: '张某涉嫌组织、领导黑社会性质组织罪审查起诉案‌',
            sah: '（2025）豫0108刑捕0001号',
            xyrmc: '张某',
            rs: '10',
            lasj: '2025-03-01',
            ay: '涉嫌组织、领导黑社会性质组织罪审查',
            qzcs: '2025-01-02',
            zcjg: '惠济区检察院',
            fzshr: '李某',
            fjrd: ''
          }
        }, {
          ajmc: '张某涉嫌盗窃罪、掩饰隐瞒犯罪所得罪审查起诉案‌',
          sah: '（2025）豫0108刑捕0014号',
          ajlb: '审查起诉',
          ysjg: '郑州市公安局惠济分区',
          lasj: '2025-03-23',
          ajyjrq: '2025-03-24',
          lzzt: '继续侦查',
          spqx: '21小时58分钟',
          cjsj: '2025-03-24',
          status: 1
        }, {
          ajmc: '陈某涉嫌贪污罪、挪用公款罪审查起诉案‌',
          sah: '（2025）豫0108刑捕0016号',
          ajlb: '审查起诉',
          ysjg: '郑州市公安局惠济分区',
          lasj: '2025-03-23',
          ajyjrq: '2025-03-24',
          lzzt: '继续侦查',
          spqx: '23小时12分钟',
          cjsj: '2025-03-24',
          status: 1
        },
        {
          ajmc: '李某（累犯）涉嫌抢劫罪审查起诉案‌‌',
          sah: '（2025）豫0108刑捕0011号',
          ajlb: '审查起诉',
          ysjg: '郑州市公安局惠济分区',
          lasj: '2025-03-21',
          ajyjrq: '2025-03-22',
          lzzt: '继续侦查',
          spqx: '12小时12分钟',
          cjsj: '2025-03-23',
          status: 1
        }, {
          ajmc: '未成年人孙某涉嫌强奸罪审查起诉案‌',
          sah: '（2025）豫0108刑捕0013号',
          ajlb: '审查起诉',
          ysjg: '郑州市公安局惠济分区',
          lasj: '2025-03-22',
          ajyjrq: '2025-03-22',
          lzzt: '继续侦查',
          spqx: '11小时45分钟',
          cjsj: '2025-03-23',
          status: 1
        }, {
          ajmc: '‌陈某涉嫌职务侵占罪审查起诉案‌',
          sah: '（2025）豫0108刑诉0001号',
          ajlb: '审查起诉',
          ysjg: '郑州市公安局惠济分区',
          lasj: '2025-03-11',
          ajyjrq: '2025-03-12',
          lzzt: '继续侦查',
          spqx: '2小时54分钟',
          cjsj: '2025-03-13',
          status: 3,
          gajgForm: {
            ajmc: '‌陈某涉嫌职务侵占罪审查起诉案‌',
            sah: '（2025）豫0108刑诉0001号',
            xyrmc: '张某',
            rs: '20',
            lasj: '2025-03-23',
            ay: '涉嫌职务侵占罪',
            qzcs: '2025-03-24',
            zcjg: '惠济区检察院',
            fzshr: '李某',
            fjrd: ''
          }
        }
      ]
    }

  }
}
</script>

<style scoped lang='scss'>

</style>
